#include <stdio.h>
int judge(int a,int b)
{
    if(a==1)
    {
        if(b == 1) return 3;
        else return 1;
    }
    else
    {
        if(b==1) return 2;
        else if(b>a) return 2;
        else if(b<a) return 1;
        else if(a==b) return 3;
    }
} 
int main()
{
    int k;
    int x[4];
    int y[4];
    int n,m,i, flag,f,j,a,b;
    scanf("%d",&k);
    while(k--)
    {
        for(i=0;i<3;i++) scanf("%d",&x[i]);
        for(i=0;i<3;i++) scanf("%d",&y[i]);
        if(x[0]==x[1]&&x[0]==x[2]) n=3;
        else if(x[0]==x[1]||x[0]==x[2]||x[1]==x[2]) n = 2;
        else n = 1;
        if(y[0]==y[1]&&y[0]==y[2]) m=3;
        else if(y[0]==y[1]||y[0]==y[2]||y[1]==y[2]) m = 2;
        else m = 1;
        if(n > m) flag = 1;
        else if(n<m) flag = 2;
        else
        {    
            if(m == 3)
            {
                flag = judge(x[0],y[0]);
            }
            else if(m == 2)
            {
                if(x[0]==x[1])
                {
                    f = x[0];
                    a = 2;    
                }
                else if(x[0]==x[2]) 
                {
                    f = x[0];
                    a = 1;
                }
                else if(x[1]==x[2])
                {
                    f = x[2];
                    a = 0;
                }
                if(y[0]==y[1])
                {
                    j = y[0];
                    b = 2;    
                }
                else if(y[0]==y[2]) 
                {
                    j = y[0];
                    b = 1;
                }
                else if(y[1]==y[2])
                {
                    j = y[2];
                    b = 0;
                }
                if(f != j)
                {
                    if(f==1) flag =  1;
                    else if(j==1) flag =  2;
                    else if(f > j) flag = 1;
                    else if(f < j) flag = 2;
                } 
                else if(f == j)
                {
                    flag = judge(x[a],y[b]);    
                }
            }
            else
            {
                if(x[0]+x[1]+x[2]>y[0]+y[1]+y[2]) flag = 1;
                else if(x[0]+x[1]+x[2]<y[0]+y[1]+y[2]) flag = 2;
                else flag = 3;
            }
        }
        if(flag ==1) printf("Alice\n");
        else if(flag == 2)printf("Bob\n");
        else if(flag == 3)    printf("Draw\n");    
    }
} 
